﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;

namespace WebApp.Models
{
    /// <summary>
    /// 命令状态
    /// </summary>
    public enum IoTCmdStatus
    {
        /// <summary>
        /// 无
        /// </summary>
        None=0,
        /// <summary>
        /// 表示命令已经成功执行
        /// </summary>
        [Description("发送成功")]
        SUCCESSFUL=1,//
        /// <summary>
        /// 未发送成功
        /// </summary>
        [Description("未错误")]
        UnSend=2,
        /// <summary>
        /// 表示缓存未下发
        /// </summary>
        [Description("缓存待发")]
        PENDING=3,//
        /// <summary>
        /// 表示命令执行失败
        /// </summary>
        [Description("发送失败")]
        FAILED=4,//
        /// <summary>
        /// 表示命令已经过期
        /// </summary>
        [Description("过期未发")]
        EXPIRED,//
        /// <summary>
        /// 表示命令下发执行超时
        /// </summary>
        [Description("超时未发")]
        TIMEOUT,//
        /// <summary>
        /// 表示命令已经被撤销执行
        /// </summary>
        [Description("撤销执行")]
        CANCELED,//
        /// <summary>
        /// 表示命令已送达设备
        /// </summary>
        [Description("已经送达")]
        DELIVERED,//
        /// <summary>
        /// 表示命令正在下发
        /// </summary>
        [Description("正在发送")]
        SENT,//        
        /// <summary>
        /// 设备离线
        /// </summary>
        [Description("设备离线")]
        Offline
    }
}
